home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / CIncludes / Folders.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-06  |  2.8 KB  |  91 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Folders.h
  3.  
  4.      Contains:    Folder Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __FOLDERS__
  21. #define __FOLDERS__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifndef __FILES__
  30. #include <Files.h>
  31. #endif
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <OSUtils.h>                                        */
  34. /*        #include <Memory.h>                                        */
  35. /*    #include <Finder.h>                                            */
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_ALIGN_SUPPORTED
  42. #pragma options align=mac68k
  43. #endif
  44.  
  45. #if PRAGMA_IMPORT_SUPPORTED
  46. #pragma import on
  47. #endif
  48.  
  49.  
  50. enum {
  51.     kOnSystemDisk                = 0x8000,
  52.     kCreateFolder                = true,
  53.     kDontCreateFolder            = false,
  54.     kSystemFolderType            = 'macs',                        /* the system folder */
  55.     kDesktopFolderType            = 'desk',                        /* the desktop folder; objects in this folder show on the desk top. */
  56.     kTrashFolderType            = 'trsh',                        /* the trash folder; objects in this folder show up in the trash */
  57.     kWhereToEmptyTrashFolderType = 'empt',                        /* the "empty trash" folder; Finder starts empty from here down */
  58.     kPrintMonitorDocsFolderType    = 'prnt',                        /* Print Monitor documents */
  59.     kStartupFolderType            = 'strt',                        /* Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here */
  60.     kShutdownFolderType            = 'shdf',                        /* Finder objects (applications, documents, DAs, aliases, to...) to open at shutdown go here */
  61.     kAppleMenuFolderType        = 'amnu',                        /* Finder objects to put into the Apple menu go here */
  62.     kControlPanelFolderType        = 'ctrl',                        /* Control Panels go here (may contain INITs) */
  63.     kExtensionFolderType        = 'extn',                        /* Finder extensions go here */
  64.     kFontsFolderType            = 'font',                        /* Fonts go here */
  65.     kPreferencesFolderType        = 'pref',                        /* preferences for applications go here */
  66.     kTemporaryFolderType        = 'temp'
  67. };
  68.  
  69. #if SystemSevenOrLater
  70. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID)
  71.  TWOWORDINLINE(0x7000, 0xA823);
  72. #else
  73. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID);
  74. #endif
  75. extern pascal OSErr ReleaseFolder(short vRefNum, OSType folderType)
  76.  TWOWORDINLINE(0x700B, 0xA823);
  77.  
  78. #if PRAGMA_IMPORT_SUPPORTED
  79. #pragma import off
  80. #endif
  81.  
  82. #if PRAGMA_ALIGN_SUPPORTED
  83. #pragma options align=reset
  84. #endif
  85.  
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89.  
  90. #endif /* __FOLDERS__ */
  91.